#!/bin/bash
[ -d /root ] && cd /root
[ ! -d /root ] && mkdir /root && cd /root 
for i in 1 2 3 4
do
    touch m${i}.txt
    mkdir m${i}
    mv  m${i}.txt  m${i}
done